﻿@model PlmPersonnelinfoViewModel
@{
    Layout = null;
    ViewBag.Title = "人员查询列表";
}
<script type="text/javascript">
   
    function selUnit() {
        $('input[name="iput_section"]').val($("#ucodes").val());
        $("#a_selunit").attr("href", "/PersonnelLog/PlmConstructionPersonnel/PersonnelSectionUnit");
    }
</script>
@using (Html.BeginForm("SplitPageForAllPersonnel", "PlmConstructionPersonnel", null, FormMethod.Post, new { id = "pagerForm", onsubmit = "return navTabSearch(this);" }))
{
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@(ViewBag.numPerPage)" />
    <ul class="searchBar" style="border-top:1px solid #b8d0d6;">
        <li>
            <input style="display: none;" type="button" onclick="selUnit()" id="but_selUnit" />
            <span>标段：</span>
            <input type="text" id="rygl_rycx_section" name="rygl_rycx_section" value="@(ViewBag.iput_section)" readonly="true" />
            <a id="a_selunit" class="btnLook" title="选择标段" href="/PersonnelLog/PlmConstructionPersonnel/PersonnelSectionUnit"
                mask="true" width="480" height="480" lookupgroup="district"></a></li>
        <li><span>姓名：</span>
            <input type="text" name="iput_name" value="@(ViewBag.iput_name)" />
        </li>
        <li><span>职位：</span>
            <input type="text" name="iput_post" value="@(ViewBag.iput_post)" />
        </li>
        <li><span>职称：</span>
            <input type="text" name="iput_professsional" value="@(ViewBag.iput_professsional)" />
        </li>
        <li>
            <button type="submit" class="btn btn-success btn-xs">
                搜索</button>
        </li>
    </ul>
}
<table class="table" width="100%" layouth="96" nowraptd="false" rel="rygl_rycx_list">
    <thead>
        <tr>
          
            <th align="center">
                序号
            </th>
            <th align="center">
                标段
            </th>
            <th align="center">
                所属施工单位
            </th>
            <th align="center">
                姓名
            </th>
            <th align="center">
                职位
            </th>
            <th align="center">
                职称
            </th>
            <th align="center">
                性别
            </th>
            <th align="center">
                年龄
            </th>
            <th align="center">
                联系电话
            </th>
        </tr>
    </thead>
    <tbody>
        @{ int num = (ViewBag.pageNum - 1) * ViewBag.numPerPage;}
        @foreach (var item in Model.ThePersonnelinfoList)
        {
            num += 1;
            <tr target="ids" rel="@item.Pi_ID">
               
                <td>@num
                </td>
                <td>@item.Pi_SectionName
                </td>
                <td>@item.Pi_UnittName
                </td>
                <td>
                    <a title="查看人员详细信息" href="@Url.Action("ConstructionPersonnelDetail", "PlmConstructionPersonnel", new { id = @item.Pi_ID })" mask="true" target="dialog" width="560" height="480">@item.Pi_Name</a>
                </td>
                <td>@item.Pi_Post
                </td>
                <td>@item.Pi_Professional
                </td>
                <td>@item.Pi_Sex
                </td>
                <td>@item.Pi_Age
                </td>
                <td>@item.Pi_Phone
                </td>
            </tr>
        }
    </tbody>
</table>
<div class="panelBar" style="border-bottom:none;">
    <div class="pages" style="float: right">
        <span>显示</span>
        <select class="comsplitpage" name="numPerPage" id="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
            <option value="10" @(ViewBag.numPerPage == 10 ? "selected='selected'" : "")>10</option>
                <option value="20" @(ViewBag.numPerPage == 20 ? "selected='selected'" : "")>20</option>
                <option value="50" @(ViewBag.numPerPage == 50 ? "selected='selected'" : "")>50</option>
        </select>
        <span>条，共@(ViewBag.pagenumshown)页,@(ViewBag.totalcount)条</span>
    </div>
    <div class="pagination" style="margin:0px;float:left; margin-left:35%" targettype="navTab" totalcount="@(ViewBag.totalcount)" numperpage="@(ViewBag.numPerPage)" pagenumshown="10" currentpage="@(ViewBag.pageNum)">
    </div>
</div>
